package com.randev.snapdb;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DatabaseHelper extends SQLiteOpenHelper {

	private static final String DATABASE_NAME = "snap_db";
	private static final int DATABASE_VERSION = 2;

	public DatabaseHelper(Context context) {
		super(context, DATABASE_NAME, null, DATABASE_VERSION);
	}

	public static Context getContext() {
		return DatabaseHelper.getContext();
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		AlbumDetails.onCreate(db);

	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		AlbumDetails.onUpgrade(db, oldVersion, newVersion);

	}

}
